﻿using System.Activities;
using log4net;

namespace Reactor.Workflow.Activities
{
    public abstract class ReactorCodeActivityBase : CodeActivity
    {
        protected ILog Log;

        protected ReactorCodeActivityBase()
        {
            Log = LogManager.GetLogger(GetType());
        }

        protected abstract override void Execute(CodeActivityContext context);
    }

    public abstract class ReactorCodeActivityBase<T> : CodeActivity<T>
    {
        protected ILog Log;

        protected ReactorCodeActivityBase()
        {
            Log = LogManager.GetLogger(GetType());
        }

        protected abstract override T Execute(CodeActivityContext context);
    }
}
